import 'package:flutter_screenutil/screenutil.dart';
import 'package:flutter/material.dart';

class LoanListItem extends StatefulWidget {
  @override
  _LoanListItemState createState() => _LoanListItemState();
}

class _LoanListItemState extends State<LoanListItem> {
  @override
  Widget build(BuildContext context) {
    return Container(
      height: ScreenUtil().setWidth(111),
       width: ScreenUtil().setWidth(345),
       decoration: BoxDecoration(
         borderRadius: BorderRadius.circular(8),
         color: Colors.white
       ),
       child:Row(
         children: [
           SizedBox(width: ScreenUtil().setWidth(11),),
           Column(
             children: [
               SizedBox(height: ScreenUtil().setWidth(36),),
               Container(
                 width: ScreenUtil().setWidth(100),
                 child:Text("￥200,000.00",style: TextStyle(fontSize: ScreenUtil().setSp(16),color:Color(0xffFF1C1C)),textAlign: TextAlign.center,),
               ),
               SizedBox(height: ScreenUtil().setWidth(5),),
               Container(
                 width: ScreenUtil().setWidth(100),
                 child:Text("合同额度",style: TextStyle(fontSize: ScreenUtil().setSp(12),),textAlign: TextAlign.center,),
               ),
             ],
           ),
           SizedBox(width: ScreenUtil().setWidth(8),),
           Container(
             color: Color(0xffE8E8E8) ,
             width: ScreenUtil().setWidth(1),
             height: ScreenUtil().setWidth(73),
           ),
           SizedBox(
             width: ScreenUtil().setWidth(14),
           ),
           Column(
             children: [
               SizedBox(height: ScreenUtil().setWidth(36),),
               Container(
                 width: ScreenUtil().setWidth(190),
                 child:Text("业务编号：3401 **** **** *391 9",style: TextStyle(fontSize: ScreenUtil().setSp(12)),textAlign: TextAlign.left,),
               ),
               SizedBox(height: ScreenUtil().setWidth(5),),
               Container(
                 width: ScreenUtil().setWidth(190),
                 child:Text("贷款银行：益阳农商银行",style: TextStyle(fontSize: ScreenUtil().setSp(12),),textAlign: TextAlign.left,),
               ),
             ],
           ),
           // SizedBox(width:ScreenUtil().setWidth() ,),
           Container(
             width: ScreenUtil().setWidth(8),
             height: ScreenUtil().setWidth(14),
             child: Image.asset("sources/yy/rightArrown.png"),
           )
         ],
       ) ,
    );
  }
}
